package com.ufgov.smartclient.component.table;

import javax.swing.JComponent;
import javax.swing.JTextField;

class EllipsisEditorPanel extends EllipsisPanel {

  private JTextField textField;

  EllipsisEditorPanel(boolean allowEdit) {
    super();
    getTextComponent().setEnabled(allowEdit);
  }

  public JTextField getTextComponent() {
    if (textField == null)
      textField = new JTextField();
    return textField;
  }

  @Override
  public JComponent getClientComponent() {
    return getTextComponent();
  }
}
